package com.liucxu.zimuzu.Model.Impl;

import com.liucxu.zimuzu.Api.ResourceDetailService;
import com.liucxu.zimuzu.Model.Bean.ResourceDetailsInfoBean;
import com.liucxu.zimuzu.Model.IResourceInfoModel;
import com.liucxu.zimuzu.Utils.ParamsUtils;
import com.liucxu.zimuzu.Utils.ServiceFactory;

import java.util.HashMap;

import rx.Observable;

/**
 * 资源详情Model实现类
 * Created by liukanshan on 2016/12/23.
 */

public class ResourceInfoImpl implements IResourceInfoModel {
    @Override
    public Observable<ResourceDetailsInfoBean> getResourceInfo(String resId) {
        HashMap<String,String> maps=new HashMap<>();
        maps= ParamsUtils.GetCommonParams();
        maps.put("id",resId);
        return ServiceFactory.GetInstance().createService(ResourceDetailService.class).getResourceInfo(maps);
    }
}
